- Download these 2 files
- Compile AOSP without fcm from stock and wait for check_vintf to error out
- Delete Python prefix from all lines (e.g.
checkvintf E 06-24 00:30:22 49120 49120 check_vintf.cpp:554]
) - Paste the result in fqnames.txt
- Launch the script
Discover gists
A Pen by Ioannis Venitsanopoulos on CodePen.
A Pen by Ioannis Venitsanopoulos on CodePen.
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
""" | |
修正微软拼音输入法无法添加多个格式化自定义短语的问题 | |
Author: Scruel Tao | |
""" | |
import os | |
import re | |
import pathlib | |
import traceback | |
from pathlib import Path |
Things are awkward in the apt
world while apt-key
is deprecated and things like Launchpad and general PPA usage are in flux.
This snippet attempts to replicate add-apt-repository
functionality for sanity, probably quite badly. There's no error checking or anything advanced, but at least the script is easy to understand.
Syntax: [sudo] addaptrepo.sh <repo-string> <gpg-key-fingerprint>
Then follow up with [sudo] apt-get update
. I'm not making that call for you :P
You can find the gpg key fingerprint for a Launchpad repo by expanding Technical details about this PPA
.
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+